﻿CREATE FUNCTION [dbo].[yaf_bitset]
               (@Flags INT,
				@Mask  INT)
RETURNS BIT
AS
  BEGIN
	DECLARE  @bool BIT
		IF (@Flags & @Mask) = @Mask
		SET @bool = 1
		ELSE
		SET @bool = 0
		RETURN @bool
	END


